FROM golang:1.16-alpine

ARG env=test
USER root
RUN mkdir -p /app && mkdir -p /var/log && touch /var/log/ping.log
COPY ./main /app/
WORKDIR /app
EXPOSE 9999

CMD /app/main > /var/log/ping.log 2>&1